package com.cloud.Service;

import com.cloud.dto.MessageDto;
import com.cloud.dto.UserDto;
import com.cloud.entity.Message;
import com.cloud.entity.User;
import com.netflix.ribbon.proxy.annotation.Http;

import javax.persistence.criteria.CriteriaBuilder;
import javax.servlet.http.HttpSession;
import java.beans.IntrospectionException;
import java.util.List;


public interface MessageService {
    public MessageDto sendMessage(Integer received_id, UserDto user);
    public MessageDto getMessageById(Integer id);
    public String update(Message message);
    public List<MessageDto> getall();
    public List<MessageDto> unread(Integer userid);
    public List<MessageDto> histroy(Integer userid);



}
